
import 'package:flutter/material.dart';

// 自定义按钮
class CustomButton extends StatelessWidget {
  final gradient; //背影渐变色
  final radius; //圆角
  final title;
  final borderColor; //边框颜色
  final widgt;
  final height;
  final fontSize;
  final fontColor;
  final padding;
  final margin;


  CustomButton({this.gradient, this.radius, this.title, this.borderColor,
    this.widgt, this.height, this.fontSize, this.fontColor, this.padding,
    this.margin,});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: widgt,
      height: height,
      padding: padding,
      margin: margin,
      alignment: Alignment(0, 0),
      decoration: BoxDecoration(borderRadius:
      BorderRadius.circular(radius),
          border: Border.all(color: borderColor),
          gradient: gradient),child: Text(title,style: TextStyle(color: fontColor,fontSize: fontSize),),);

  }
}
